package com.chzc.fm.duotin.bean.home;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/6/27.
 */
public class ContentBean {


    /**
     * id : 1446673
     * title : Vol.099 在瓜洲，你为谁泪流.mp3
     * display_order : 99940
     * album_id : 86063
     * comment_num : 0
     * shared_num : 0
     * play_num : 2935
     * duration : 00:45:41
     * audio_32_url : http://c203.duotin.com/M02/42/18/wKgB5VdqNUyAEuOSAU6jhEYQa6A545.mp3
     * audio_64_url : http://c203.duotin.com/M02/42/18/wKgB5VdqNUyAEuOSAU6jhEYQa6A545.mp3
     * image_url :
     * describe : 主播太懒，什么都没留下...
     * wonderful_parts : null
     * described : 2016-06-22 15:38:35
     * is_collect : 0
     */

    private String id;
    private String title;
    private String display_order;
    private String album_id;
    private int comment_num;
    private String shared_num;
    private String play_num;
    private String duration;
    private String audio_32_url;
    private String audio_64_url;
    private String image_url;
    private String describe;
    private Object wonderful_parts;
    private String described;
    private int is_collect;

    public static ContentBean objectFromData(String str) {

        return new Gson().fromJson(str, ContentBean.class);
    }

    public static List<ContentBean> arrayContentBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<ContentBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDisplay_order() {
        return display_order;
    }

    public void setDisplay_order(String display_order) {
        this.display_order = display_order;
    }

    public String getAlbum_id() {
        return album_id;
    }

    public void setAlbum_id(String album_id) {
        this.album_id = album_id;
    }

    public int getComment_num() {
        return comment_num;
    }

    public void setComment_num(int comment_num) {
        this.comment_num = comment_num;
    }

    public String getShared_num() {
        return shared_num;
    }

    public void setShared_num(String shared_num) {
        this.shared_num = shared_num;
    }

    public String getPlay_num() {
        return play_num;
    }

    public void setPlay_num(String play_num) {
        this.play_num = play_num;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getAudio_32_url() {
        return audio_32_url;
    }

    public void setAudio_32_url(String audio_32_url) {
        this.audio_32_url = audio_32_url;
    }

    public String getAudio_64_url() {
        return audio_64_url;
    }

    public void setAudio_64_url(String audio_64_url) {
        this.audio_64_url = audio_64_url;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Object getWonderful_parts() {
        return wonderful_parts;
    }

    public void setWonderful_parts(Object wonderful_parts) {
        this.wonderful_parts = wonderful_parts;
    }

    public String getDescribed() {
        return described;
    }

    public void setDescribed(String described) {
        this.described = described;
    }

    public int getIs_collect() {
        return is_collect;
    }

    public void setIs_collect(int is_collect) {
        this.is_collect = is_collect;
    }
}
